﻿.fullpage {
    display: -ms-grid;
    -ms-grid-rows: 1fr;
    -ms-grid-columns: 1fr;
    height: 100%;
    width: 100%;
}
    .fullpage .full-image {        
        overflow: auto;
        position: relative;        
        -ms-scroll-rails: none;
        width: 100%; 
        height: 100%;
        -ms-grid-row-align: center;
        -ms-grid-column-align: center;
    }
        .fullpage .full-image .img-viewer {
	        -ms-grid-rows: 1fr 150px;
	        display: -ms-grid;
            width: 100%;
            height: 100%;
	        -ms-grid-columns: 1fr;                       
        }
                
            .fullpage .full-image .img-viewer .img-section {
	            -ms-grid-row-span: 2;
	            -ms-grid-row: 1;                 
                display: table;
                -ms-grid-row-align: center;
                -ms-grid-column-align: center;
            }

                .fullpage .full-image .img-viewer .img-section .img-cell {
	                display: table-cell;
                    text-align: center;
                    vertical-align: middle
                }

                .fullpage .full-image .img-viewer .img-section .img-source {	                
                    overflow: scroll;
                }

            .fullpage .full-image .img-viewer .img-overlay {
	            -ms-grid-row: 2;
                -ms-grid-columns: 90px 1fr;
	            display: -ms-grid;
	            background-color: rgba(0,0,0,0.65);
	            padding: 6px 15px 2px;
            }
                .fullpage .full-image .img-viewer .img-overlay .img-description {
                    -ms-grid-column: 2;
                    max-height: 150px;
	                overflow: hidden;
                }

    .fullpage .zoomElement {
        overflow: auto;
        -ms-content-zooming: zoom;
        -ms-scroll-rails: none;
        -ms-content-zoom-limit-min: 100%;
        -ms-content-zoom-limit-max: 500%;
    }

@media screen and (-ms-view-state: filled) {
    .fullpage {
        -ms-grid-columns: 420px 1fr;
    }

        .fullpage .itemlistsection .itemlist .item {
            -ms-grid-columns: 60px 1fr;
            height: 60px;
            margin-bottom: 0;
            width: 282px;
        }

            .fullpage .itemlistsection .itemlist .item .item-image {
                height: 60px;
                width: 60px;
            }

            .fullpage .itemlistsection .itemlist .item .item-info .item-title {
                margin-top: 4px;
                max-height: 40px;
                overflow: hidden;
            }

            .fullpage .itemlistsection .itemlist .item .item-info .item-description {
                display: none;
            }

        .fullpage .articlesection {
            margin-left: 60px;
            padding-right: 66px;
        }
}

@media screen and (-ms-view-state: snapped) {
    .fullpage {
        -ms-grid-columns: 320px 0px;
    }

        .fullpage .itemlistsection {
            margin-left: 6px;
        }

            .fullpage .itemlistsection .itemlist .item {
                -ms-grid-columns: 60px 1fr;
                height: 60px;
                width: 282px;
            }

                .fullpage .itemlistsection .itemlist .item .item-image {
                    height: 60px;
                    width: 60px;
                }

                .fullpage .itemlistsection .itemlist .item .item-info .item-title {
                    margin-top: 4px;
                    max-height: 30pt;
                    overflow: hidden;
                }

                .fullpage .itemlistsection .itemlist .item .item-info .item-description {
                    visibility: hidden;
                }

        .fullpage .articlesection {
            -ms-grid-row-span: 1;
            -ms-grid-row: 2;
            margin-left: 20px;
            padding-right: 36px;
        }

            .fullpage .articlesection header {
                display: block;
                margin-top: 0;
            }

                .fullpage .articlesection header .text {
                    -ms-grid-column: 1;
                    margin-top: 6px;
                }

                    .fullpage .articlesection header .text .article-subtitle {
                        margin-bottom: 16px;
                        margin-top: 10px;
                        overflow: hidden;
                    }

                .fullpage .articlesection header .article-image {
                    height: 160px;
                    width: 242px;
                }

        .fullpage .itemlistsection, .fullpage .articlesection {
            -ms-grid-column: 2;
            visibility: hidden;
        }

        .fullpage .primarycolumn {
            -ms-grid-column: 1;
            visibility: visible;
        }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .fullpage {
        -ms-grid-columns: 1fr 0px;
    }

        .fullpage .itemlistsection {
            margin-left: 86px;
        }

            .fullpage .itemlistsection .itemlist .win-horizontal.win-viewport .win-container {
                margin-right: calc(100% - 510px);
            }

        .fullpage .articlesection {
            -ms-grid-row: 2;
            -ms-grid-row-span: 1;
            margin-left: 100px;
            padding-right: 100px;
        }

            .fullpage .articlesection .header {
                margin-top: 0;
            }

        .fullpage .itemlistsection, .fullpage .articlesection {
            -ms-grid-column: 2;
            visibility: hidden;
        }

        .fullpage .primarycolumn {
            -ms-grid-column: 1;
            visibility: visible;
        }
}




.img-overlay {
	-ms-grid-row: 2;
}